package com.ruoyi.project.system.register.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.register.mapper.ZzReceiverRegisterMapper;
import com.ruoyi.project.system.register.domain.ZzReceiverRegister;
import com.ruoyi.project.system.register.service.IZzReceiverRegisterService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-12-28
 */
@Service
public class ZzReceiverRegisterServiceImpl implements IZzReceiverRegisterService 
{
    @Autowired
    private ZzReceiverRegisterMapper zzReceiverRegisterMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param receiverRegisterId 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public ZzReceiverRegister selectZzReceiverRegisterById(Integer receiverRegisterId)
    {
        return zzReceiverRegisterMapper.selectZzReceiverRegisterById(receiverRegisterId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param zzReceiverRegister 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ZzReceiverRegister> selectZzReceiverRegisterList(ZzReceiverRegister zzReceiverRegister)
    {
        return zzReceiverRegisterMapper.selectZzReceiverRegisterList(zzReceiverRegister);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param zzReceiverRegister 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertZzReceiverRegister(ZzReceiverRegister zzReceiverRegister)
    {

        if ("不良品".equals(zzReceiverRegister.getReceiverCommodityStatus())){

        }

        return zzReceiverRegisterMapper.insertZzReceiverRegister(zzReceiverRegister);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param zzReceiverRegister 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateZzReceiverRegister(ZzReceiverRegister zzReceiverRegister)
    {
        return zzReceiverRegisterMapper.updateZzReceiverRegister(zzReceiverRegister);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteZzReceiverRegisterByIds(String ids)
    {
        return zzReceiverRegisterMapper.deleteZzReceiverRegisterByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param receiverRegisterId 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteZzReceiverRegisterById(Integer receiverRegisterId) {
        return zzReceiverRegisterMapper.deleteZzReceiverRegisterById(receiverRegisterId);
    }
}
